// 终端扫码
import uplo from '@/utils/facility/uploadfileend.js'
import uploadfile from '@/utils/facility/uploadfile.js'
export function choosImgend(datas) { // 上传完毕之后调用这个接口这个已经上传完毕

	console.log(datas, 'datachooseimg')
	// var datas = JSON.stringify(data)
	// console.log(datas,'datas')
	return uplo({
		url: '/File/sendMessage',
		method: 'post',
		// formData: {
		// postdata: data.postdata, //unicodeid 
		// orderId: data.orderId, //订单id 
		// specId: data.specId //证件照规格 
		// },
		data: {
			postdata: datas
		}
	})
}

 
 
// 图片打印 终端扫码
export function choosImg(data) { // 
	console.log(data, 'datachooseimg')
	return uploadfile({
		url: '/File/fileUpload',
		// formData: {
		postdata: data.postdata, //unicodeid
		filePath: data.filePath
		// orderId: data.orderId, //订单id 
		// specId: data.specId //证件照规格 
		// },
	})
}
